Current Location: Home> Function Categories> atan

atan

Anyway
Name:atan
Category:math
Programming Language:php
One-line Description:Arctangent.

Definition and usage

The atan() function returns the arctangent tangent of a numeric value, which is between -PI/2 and PI/2.

Example

This example calculates the arctangent of different values:

 <?php
echo ( atan ( 0.50 ) ) ;
echo ( atan ( - 0.50 ) ) ;
echo ( atan ( 5 ) ) ;
echo ( atan ( 10 ) ) ;
echo ( atan ( - 5 ) ) ;
echo ( atan ( - 10 ) )
?>

Try it yourself

grammar

 atan( x )
parameter describe
x Required. A number.

illustrate

atan() function returns the arctangent value of x , in radians. atan() is the inverse function of tan() , which means that every value in the atan() range is a==tan(atan(a)) .

Similar Functions
  • Calculate the index of e exp

    exp

    Calculatetheindexofe
  • Ancient sine asin

    asin

    Ancientsine
  • Convert radians to corresponding angles rad2deg

    rad2deg

    Convertradianstocorr
  • Logarithm with base 10 log10

    log10

    Logarithmwithbase10
  • Convert angle to radians deg2rad

    deg2rad

    Convertangletoradian
  • Cosine cos

    cos

    Cosine
  • Hyperbolic sine sinh

    sinh

    Hyperbolicsine
  • Natural logarithm log

    log

    Naturallogarithm
Popular Articles